ActionScript 2.0 Components Language Reference |
|
|
|
| FocusManager class > FocusManager.setFocus() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004 and Flash MX Professional 2004.
focusManager.setFocus(object)
object A reference to the object to receive focus.
Nothing.
Method; sets focus to the specified object. If the object to which you want to set focus is not on the main timeline, use the following code:
_root.focusManager.setFocus(object);
The following code sets focus to myOKButton:
focusManager.setFocus(myOKButton);
|
|
|
|